//
//  SearchCell.m
//  CMTSShipper
//
//  Created by mac on 2020/2/20.
//  Copyright © 2020 zhuchongjin. All rights reserved.
//

#import "SearchCell.h"

@implementation SearchCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)layoutSubviews {
    
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 0,kScreenWidth-20,20)];
    [self.contentView addSubview:titleLabel];
    titleLabel.textAlignment = NSTextAlignmentLeft;
    titleLabel.font = [UIFont cjTitleFont14];
    titleLabel.textColor = [UIColor blackColor];
    titleLabel.text = self.title;
    
    UILabel *contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(5, 20, kScreenWidth-20, 30)];
    [self.contentView addSubview:contentLabel];
    contentLabel.textAlignment = NSTextAlignmentLeft;
    contentLabel.font = [UIFont cjTitleFont12];
    contentLabel.textColor = [UIColor blackColor];
    contentLabel.text = self.content;
    contentLabel.lineBreakMode = NSLineBreakByClipping;
    contentLabel.numberOfLines = 0;
    
    UIView *line = [[UIView alloc] initWithFrame:CGRectMake(0, 49.5, kScreenWidth-10, 0.5)];
    [self.contentView addSubview:line];
    line.backgroundColor = [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1.0];
    
}


@end
